import React from 'react'

interface Props {
	date: Date,
}
export default function Clock({date}:Props) {
	console.log("props",date)
	return (
		<div>
			<h1>Hello, world!</h1>
			<h2>It is {date.toLocaleTimeString()}.</h2>
		</div>
	)
}

// setInterval(Clock,1000);
